﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace NUnitTests
{
    class NUnitLauncherProgram
    {
        [STAThread]
        public static void Main()
        {
            string location = Assembly.GetExecutingAssembly().Location;
            //string path = Environment.GetEnvironmentVariable("PATH");
            //path = @"C:\Program Files\NUnit 2.5.10\bin\net-2.0;" + path;
            //Environment.SetEnvironmentVariable("PATH", path);
            //Environment.CurrentDirectory = @"C:\Program Files\NUnit 2.5.10\bin\net-2.0";
            AppDomain.CurrentDomain.ExecuteAssembly(
              @"C:\Program Files\NUnit 2.5.10\bin\net-2.0\nunit-console.exe",
              new string[] { location });
        }
    }
}
